package com.suray.wcs.service.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.suray.commin.annotation.Excel;
import com.suray.commin.core.utils.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wcs_exception_log")
public class ExceptionLogDB extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    /**
     * 异常日志ID
     */
    @Excel(name = "异常日志ID")
    private Integer exceptionLogId;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间")
    private Date createTime;
    /**
     * 异常日志类型
     */
    @Excel(name = "异常类型")
    private Integer exceptionType;
    /**
     * 异常日志内容
     */
    @Excel(name = "异常描述")
    private String exceptionInfo;
    /**
     * WCS任务号
     */
    @Excel(name = "异常时WCS编号")
    private String taskId;
    /**
     * 设备名称
     */
    @Excel(name = "异常设备名称")
    private String deviceName;
    /**
     * 设备当前状态
     */
    @Excel(name = "异常时设备状态")
    private Integer deviceStatus;
    /**
     * 错误码
     */
    @Excel(name = "异常码")
    private String errCode;

    @TableField(exist = false)
    private Date startOccurredTime;

    @TableField(exist = false)
    private Date endOccurredTime;

    @TableField(exist = false)
    private String deviceStatusStr;

    @TableField(exist = false)
    private String exceptionTypeStr;

}
